package com.buydeem.factory.simple;

/**
 * 简单工厂
 *
 * @author zengchao
 * @date 2022-04-22 10:15:15
 */
public class App {
    public static void main(String[] args) {
        Vehicle car = VehicleFactory.create("小汽车");
        car.printName();

        Vehicle bus = VehicleFactory.create("公交车");
        bus.printName();
    }
}
